<!DOCTYPE HTML>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Sites Management System</title>
	<link href="<?php echo base_url('/file/shell/login/login-box.css') ?>" rel="stylesheet" />
	<link href="http://fonts.googleapis.com/css?family=Open+Sans" rel="stylesheet" />
	<script src="<?php echo base_url('/file/js/jquery-1.7.min.js') ?>"></script>
	<script src="<?php echo base_url('/file/shell/smooth/resources/scripts/login.js') ?>"></script>
</head>
<body>
<div id="wrapper">
  <header>
    <hgroup>
      <h1><img src="<?php echo base_url('/file/shell/smooth/resources/img/logo.png') ?>" alt="sales tracking system"></h1>
    </hgroup>
    <div>
      <p><a href="<?php echo site_url('/faq' )?>">Guide</a></p>
    </div>
  </header>

  <section>
    <p>
		<!--
		Selamat datang di Smartfren Sites Management System. Gunakan login form untuk masuk atau <br>
		Klik disini untuk membaca panduan penggunaan.!
		-->
		Welcome to Smartfren Sites Management System. Please use login form to use this system.
    </p>
  
    <article>
      <div id="warning">
      <?php

          $expired = "";
          $msg = validation_errors();
          if($msg <> "")
          {
            if($expired<>'')
            {
              echo $expired;
            }
            else if($jumlah_salah>0 and $jumlah_salah < 10) 
            {
				echo'Anda telah melakukan '. $jumlah_salah .' kali kesalahan'. $msg;
            }
            else if($jumlah_salah >= 10)
            {
              echo'Anda telah melakukan kesalahan lebih dari batas toleransi, silakan hubungi Administrator';
            }
           
          }
          else if($jumlah_salah >= 10)
          {
                echo 'Akun Anda telah di-blok karena melakukan kesalahan lebih dari batas toleransi, silakan hubungi Administrator';
          }
          ?>
        </div>
		
		<?php echo form_open() ?>
        <div>
			<?php echo form_input('username', set_value('username', $username), 'id="j_username" class="form-login text_input" size="34" placeholder="Username" autocomplete="off"') ?>
			<?php echo form_password('password', set_value('password', $password), 'id="password" class="form-login text_input" size="34" placeholder="Password"') ?>
		</div>  
        <div>
			<img src="<?php echo site_url('/login/capcay') ?>" id="ratcha_image" alt="CAPTCHA"><!-- <a href="#" id="reload_captcha"> Reload kode validasi</a> -->
			<?php echo form_input('ractha', set_value('ractha'), 'class="form-login text_input" size="34" placeholder="Security code" autocomplete="off"') ?>
		</div>
        <?php echo form_submit('submit', 'Login', 'id="login_btn" class="login_btn"') ?>
		<?php echo form_close() ?>

    </article>
  </section>

</div>

<footer>
      <p>Copyright &copy; 2013 PT Smartfren Telecom Tbk. <br>Powered by PT. Nutech Integrasi.</p>
</footer>

</body>
</html>